import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import httpPlugin from './request/httpPlugin'
/* 引入createPinia，用于创建pinia */
import { createPinia } from 'pinia'
import { Swipe, SwipeItem } from 'vant';
/* 创建pinia */
const pinia = createPinia()


const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router).use(httpPlugin).use(pinia).use(Swipe).use(SwipeItem).mount('#app')
